{{extend 'layout.html'}}
<h1>今天看什么？</h1>
{{if resource:}}
<p>
    类型:{{=resource.category[0]}}
    <br>
    来源:{{=resource.source_id.name}}
    <br>
    名称:<a href="{{=resource.url}}" class="btn-link" target="_blank">{{=resource.title}}</a>
</p>
<div style="position: relative; padding: 30% 45%;">
<h1>
 &nbsp;
    </h1>
<h1>
 &nbsp;
    </h1>
<h1>
 &nbsp;
    </h1>
<h1>
 &nbsp;
    </h1>
<h1>
 &nbsp;
    </h1>
<iframe style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;" src="{{=resource.url}}" frameborder="no" scrolling="yes" high_quality=1></iframe>
</div>
{{else:}}
<h2>呀！没有了!</h2>
{{pass}}
<br>
{{if len_queue:}}
<a href="/myweb/default/see_what/pre" class="btn btn-dark">上一个{{=len_queue}}</a>
{{else:}}
{{pass}}

<a href="/myweb/default/see_what/next" class="btn btn-dark">换一个</a>
<p>
<p>
    注：
    <br>
    若内容无法正常显示
    <br>
    请点击链接跳转原网页浏览!
</p>

 {{if len(comments):}}
<h2>留言</h2>
{{for comment in comments:}}
{{=comment.created_on}} {{=comment.author }} ： <i>{{=comment.body}}</i>
<br>
{{pass}}
{{else:}}
<h2>还没有留言哦！</h2>
{{pass}}

{{if resource:}}
<a href="/myweb/default/show/{{=resource.id}}" class="btn btn-secondary">去留言</a>
{{else:}}
{{pass}}
